from django.conf.urls import url

from . import views


urlpatterns = [
	url(r'^register$', views.SystemUserInfoViewSet.as_view({'post': 'register_user'})),
	url(r'^login$', views.LoginView.as_view()),
	url(r'^update$', views.SystemUserInfoViewSet.as_view({'post': 'update'})),
	url(r'^list$', views.SystemUserInfoViewSet.as_view({'get': 'list'})),
	url(r'^changePassword$', views.SystemUserInfoViewSet.as_view({'post': 'change_password'})),
	url(r'^retrievePassword$', views.SystemUserInfoViewSet.as_view({'post': "retrieve_password"})),
	url(r'^getById$', views.SystemUserInfoViewSet.as_view({'get': "get_user_by_id"})),
	url(r'^delete$', views.SystemUserInfoViewSet.as_view({'get': "delete_user"})),
	url(r'^search$', views.SystemUserInfoViewSet.as_view({'get': "search"})),
	url(r'^changStatus$', views.SystemUserInfoViewSet.as_view({'get': "change_status"})),
]
